package com.peakmain.homemodule.base;

import com.peakmain.homemodule.component.DaggerFragmentComponent;
import com.peakmain.homemodule.component.FragmentComponent;
import com.peakmain.wanandroid.netmodule.NetApplication;
import com.peakmain.wanandroid.netmodule.base.BaseContract;
import com.peakmain.wanandroid.netmodule.di.module.FragmentModule;
import com.peakmain.wanandroid.netmodule.permission.BasePermissionsFragment;

/**
 * author: peakmain
 * createdata：2019/7/17
 * mail: 2726449200@qq.com
 * desiption:
 */
public abstract class BaseHomeFragment<T extends BaseContract.BasePresenter> extends BasePermissionsFragment<T> {
    public FragmentComponent mFragmentComponent;

    @Override
    public void initFragmentComponent() {
        mFragmentComponent= DaggerFragmentComponent.builder()
                .applicationComponent(((NetApplication)getActivity().getApplication()).getApplicationComponent())
                .fragmentModule(new FragmentModule(this))
                .build();
    }
}


